<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>中国地图插件</title>

    <!--leaflet样式文件-->
    <link
      rel="stylesheet"
      href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
    />
    <!--leaflet核心JS文件-->
    <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
    <!-- 引入 ChineseTmsProviders.js文件-->
    <script src="./leafletChineseTmsProviders.js"></script>

    <style>
      * {
        padding: 0;
        margin: 0;
      }
      /*必须指定宽高度*/
      #map {
        width: 100%;
        height: 100vh;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>
      let map=L.map('map').setView([23.127013, 113.366266],7)

      L.tileLayer.chinaProvider('GaoDe.Normal.Map',{maxZoom:18,minZoom:5}).addTo(map)
      L.tileLayer.chinaProvider('GaoDe.Satellite.Map',{maxZoom:18,minZoom:5}).addTo(map)
      L.tileLayer.chinaProvider('GaoDe.Satellite.Annotion',{maxZoom:18,minZoom:5}).addTo(map)

    </script>
  </body>
</html>
